package com.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;


/**
 * 美食信息
 * 数据库通用操作实体类（普通增删改查）
 * @author 
 * @email 
 * @date 2025-03-28 20:35:42
 */
@TableName("foodinformation")
public class FoodinformationEntity<T> implements Serializable {
	private static final long serialVersionUID = 1L;


	public FoodinformationEntity() {
		
	}
	
	public FoodinformationEntity(T t) {
		try {
			BeanUtils.copyProperties(this, t);
		} catch (IllegalAccessException | InvocationTargetException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	/**
	 * 主键id
	 */
    @TableId(type = IdType.AUTO)
	private Long id;
	/**
	 * 店铺名称
	 */
					
	private String storename;
	
	/**
	 * 美食名称
	 */
					
	private String foodname;
	
	/**
	 * 美食分类
	 */
					
	private String foodclassification;
	
	/**
	 * 美食图片
	 */
					
	private String foodimage;
	
	/**
	 * 美食价格
	 */
					
	private Double foodprice;
	
	/**
	 * 美食口味
	 */
					
	private String foodflavors;
	
	/**
	 * 美食详情
	 */
					
	private String fooddetails;
	
	/**
	 * 商家账号
	 */
					
	private String merchantaccount;
	
	/**
	 * 商家名称
	 */
					
	private String merchantname;
	
	/**
	 * 最近点击时间
	 */
				
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat 		
	private Date clicktime;
	
	/**
	 * 点击次数
	 */
					
	private Integer clicknum;
	
	/**
	 * 评论数
	 */
					
	private Integer discussnum;
	
	/**
	 * 收藏数
	 */
					
	private Integer storeupnum;
	
	
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat
	private Date addtime;

	public Date getAddtime() {
		return addtime;
	}
	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 设置：店铺名称
	 */
	public void setStorename(String storename) {
		this.storename = storename;
	}
	/**
	 * 获取：店铺名称
	 */
	public String getStorename() {
		return storename;
	}
	/**
	 * 设置：美食名称
	 */
	public void setFoodname(String foodname) {
		this.foodname = foodname;
	}
	/**
	 * 获取：美食名称
	 */
	public String getFoodname() {
		return foodname;
	}
	/**
	 * 设置：美食分类
	 */
	public void setFoodclassification(String foodclassification) {
		this.foodclassification = foodclassification;
	}
	/**
	 * 获取：美食分类
	 */
	public String getFoodclassification() {
		return foodclassification;
	}
	/**
	 * 设置：美食图片
	 */
	public void setFoodimage(String foodimage) {
		this.foodimage = foodimage;
	}
	/**
	 * 获取：美食图片
	 */
	public String getFoodimage() {
		return foodimage;
	}
	/**
	 * 设置：美食价格
	 */
	public void setFoodprice(Double foodprice) {
		this.foodprice = foodprice;
	}
	/**
	 * 获取：美食价格
	 */
	public Double getFoodprice() {
		return foodprice;
	}
	/**
	 * 设置：美食口味
	 */
	public void setFoodflavors(String foodflavors) {
		this.foodflavors = foodflavors;
	}
	/**
	 * 获取：美食口味
	 */
	public String getFoodflavors() {
		return foodflavors;
	}
	/**
	 * 设置：美食详情
	 */
	public void setFooddetails(String fooddetails) {
		this.fooddetails = fooddetails;
	}
	/**
	 * 获取：美食详情
	 */
	public String getFooddetails() {
		return fooddetails;
	}
	/**
	 * 设置：商家账号
	 */
	public void setMerchantaccount(String merchantaccount) {
		this.merchantaccount = merchantaccount;
	}
	/**
	 * 获取：商家账号
	 */
	public String getMerchantaccount() {
		return merchantaccount;
	}
	/**
	 * 设置：商家名称
	 */
	public void setMerchantname(String merchantname) {
		this.merchantname = merchantname;
	}
	/**
	 * 获取：商家名称
	 */
	public String getMerchantname() {
		return merchantname;
	}
	/**
	 * 设置：最近点击时间
	 */
	public void setClicktime(Date clicktime) {
		this.clicktime = clicktime;
	}
	/**
	 * 获取：最近点击时间
	 */
	public Date getClicktime() {
		return clicktime;
	}
	/**
	 * 设置：点击次数
	 */
	public void setClicknum(Integer clicknum) {
		this.clicknum = clicknum;
	}
	/**
	 * 获取：点击次数
	 */
	public Integer getClicknum() {
		return clicknum;
	}
	/**
	 * 设置：评论数
	 */
	public void setDiscussnum(Integer discussnum) {
		this.discussnum = discussnum;
	}
	/**
	 * 获取：评论数
	 */
	public Integer getDiscussnum() {
		return discussnum;
	}
	/**
	 * 设置：收藏数
	 */
	public void setStoreupnum(Integer storeupnum) {
		this.storeupnum = storeupnum;
	}
	/**
	 * 获取：收藏数
	 */
	public Integer getStoreupnum() {
		return storeupnum;
	}

}
